package com.ycg.biquge.mapper;

import com.ycg.biquge.pojo.Chapter;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;


/**
* @author lenovo
* @description 针对表【chapter(章节表)】的数据库操作Mapper
* @createDate 2024-04-16 21:28:48
* @Entity com.ycg.biquge.pojo.Chapter
*/
public interface ChapterMapper extends BaseMapper<Chapter> {

    /**
     * 根据id获取章节详细信息
     * @param id 文章id
     * @return 文章信息
     */
    Chapter getOneById(@Param("id") Integer id);

    /**
     * 根据id获取章节详细信息
     * @param id 文章id
     * @return 文章信息
     */
    Chapter getOneByIdAndNum(@Param("id")Integer id, @Param("num")Integer num);
}




